<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.text.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>IPL 2010</title>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<link rel="shortcut icon" href="images/cric_fav.ico" />
<meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" language="javascript">
	function getMoms(){
		removeAllOptions(document.match.mom);
		addOption(document.match.mom, "--", "--Select Team--", "");
		
		if(document.match.momTeam.value == 'RCB'){
			addOption(document.match.mom,"Daniel Vettori", "Daniel Vettori");
			addOption(document.match.mom,"Abhimanyu Mithun", "Abhimanyu Mithun");
			addOption(document.match.mom,"Abrar Anjum Kazi", "Abrar Anjum Kazi");
			addOption(document.match.mom,"Arun Karthik", "Arun Karthik");
			addOption(document.match.mom,"Asad Khan Pathan", "Asad Khan Pathan");
			addOption(document.match.mom,"CM Gautam", "CM Gautam");
			addOption(document.match.mom,"Cheteshwar Pujara", "Cheteshwar Pujara");
			addOption(document.match.mom,"Harshal Patel", "Harshal Patel");
			addOption(document.match.mom,"KP Appanna", "KP Appanna");
			addOption(document.match.mom,"Karun Nair", "Karun Nair");
			addOption(document.match.mom,"Mayank Agarwal", "Mayank Agarwal");
			addOption(document.match.mom,"Mohammed Kaif", "Mohammed Kaif");
		    addOption(document.match.mom,"Raju Bhatkal", "Raju Bhatkal");
			addOption(document.match.mom,"Ronit More", "Ronit More");
			addOption(document.match.mom,"Ryan Ninan", "Ryan Ninan");
			addOption(document.match.mom,"R Vinay Kumar", "R Vinay Kumar");
			addOption(document.match.mom,"Saurabh Tiwary", "Saurabh Tiwary");
			addOption(document.match.mom,"Sreenath Aravind", "Sreenath Aravind");
			addOption(document.match.mom,"S Thiyagrajan", "S Thiyagrajan");
			addOption(document.match.mom,"Syed Mohammad", "Syed Mohammad");
	        addOption(document.match.mom,"Virat Kohli", "Virat Kohli");
		    addOption(document.match.mom,"Vijay Zol", "Vijay Zol");
			addOption(document.match.mom,"Zaheer Khan", "Zaheer Khan");
			addOption(document.match.mom,"A B De Viliers", "A B De Viliers");
		    addOption(document.match.mom,"Andrew McDonald", "Andrew McDonald");
			addOption(document.match.mom,"Charl Langeveldt", "Charl Langeveldt");
			addOption(document.match.mom,"Chris Gayle", "Chris Gayle");
			addOption(document.match.mom,"Dirk Nannes", "Dirk Nannes");
			addOption(document.match.mom,"Luke Pomersbach", "Luke Pomersbach");
			addOption(document.match.mom,"Muttiah Muralitharan", "Muttiah Muralitharan");
			addOption(document.match.mom,"Rile Rossouw", "Rile Rossouw");
			addOption(document.match.mom,"T Dilshan", "T Dilshan");
         }
         
          if(document.match.momTeam.value == 'CSK'){
        	  	addOption(document.match.mom,"M S Dhoni", "M S Dhoni");
              	addOption(document.match.mom,"Abhinav Mukund", "Abhinav Mukund");
              	addOption(document.match.mom,"G Vignesh", "G Vignesh");
				addOption(document.match.mom,"Joginder Sharma", "Joginder Sharma");
				addOption(document.match.mom,"Kuthethur Vasudevadas", "Kuthethur Vasudevadas");
				addOption(document.match.mom,"Murali Vijay", "Murali Vijay");
				addOption(document.match.mom,"Ravichandran Ashwin", "Ravichandran Ashwin");
				addOption(document.match.mom,"Ravindra Jadeja", "Ravindra Jadeja");
				addOption(document.match.mom,"Shadab Jakati", "Shadab Jakati");
				addOption(document.match.mom,"Srikkanth Anirudha", "Srikkanth Anirudha");
				addOption(document.match.mom,"Subramaniam Badrinath", "Subramaniam Badrinath");
				addOption(document.match.mom,"Sudeep Tyagi", "Sudeep Tyagi");
				addOption(document.match.mom,"Suresh Raina", "Suresh Raina");
				addOption(document.match.mom,"Vijaykumar Yo Mahesh", "Vijaykumar Yo Mahesh");
				addOption(document.match.mom,"Wriddhiman Saha", "Wriddhiman Saha");
				addOption(document.match.mom,"Albie Morkel", "Albie Morkel");
				addOption(document.match.mom,"Ben Hilfenhaus", "Ben Hilfenhaus");
				addOption(document.match.mom,"Doug Bollinger", "Doug Bollinger");
				addOption(document.match.mom,"Dwayne Bravo", "Dwayne Bravo");
				addOption(document.match.mom,"Francois Du Plessis", "Francois Du Plessis");
				addOption(document.match.mom,"George Bailey", "George Bailey");
				addOption(document.match.mom,"Michael Hussey", "Michael Hussey");
				addOption(document.match.mom,"Nuwan Kulasekara", "Nuwan Kulasekara");
				addOption(document.match.mom,"Scott Styris", "Scott Styris");
				addOption(document.match.mom,"Suraj Randiv", "Suraj Randiv");
          }
         
         if(document.match.momTeam.value == 'DC'){
        	 	addOption(document.match.mom,"Kumar Sangakkara", "Kumar Sangakkara");
				addOption(document.match.mom,"Abhishek Jhunjhunwala", "Abhishek Jhunjhunwala");
				addOption(document.match.mom,"Ahmed Quadri", "Ahmed Quadri");
				addOption(document.match.mom,"Akash Bhandari", "Akash Bhandari");
				addOption(document.match.mom,"Anand Rajan", "Anand Rajan");
				addOption(document.match.mom,"Amit Mishra", "Amit Mishra");
				addOption(document.match.mom,"Ankit Sharma", "Ankit Sharma");
				addOption(document.match.mom,"Arjun Yadav", "Arjun Yadav");
				addOption(document.match.mom,"Ashish Reddy", "Ashish Reddy");
				addOption(document.match.mom,"Atchuta Rao", "Atchuta Rao");
				addOption(document.match.mom,"Bharat Chipli", "Bharat Chipli");
				addOption(document.match.mom,"Biplab Samantray", "Biplab Samantray");
				addOption(document.match.mom,"Dwaraka Ravi Teja", "Dwaraka Ravi Teja");
				addOption(document.match.mom,"Ishank Jaggi", "Ishank Jaggi");
				addOption(document.match.mom,"Ishant sharma", "Ishant sharma");
				addOption(document.match.mom,"Manpreet Gony", "Manpreet Gony");
				addOption(document.match.mom,"Parthiv Patel", "Parthiv Patel");
				addOption(document.match.mom,"Shikhar Dhawan", "Shikhar Dhawan");
				addOption(document.match.mom,"Sneha Kishore", "Sneha Kishore");
				addOption(document.match.mom,"Sunny Sohal", "Sunny Sohal");
				addOption(document.match.mom,"Tanmay Mishra", "Tanmay Mishra");
				addOption(document.match.mom,"Tanmay Srivastava", "Tanmay Srivastava");
				addOption(document.match.mom,"TP Sudhindra", "TP Sudhindra");
				addOption(document.match.mom,"Veer Pratap Singh", "Veer Pratap Singh");
				addOption(document.match.mom,"Cameron White", "Cameron White");
				addOption(document.match.mom,"Chris Lynn", "Chris Lynn");
				addOption(document.match.mom,"Dale Steyn", "Dale Steyn");
				addOption(document.match.mom,"Daniel Christian", "Daniel Christian");
				addOption(document.match.mom,"JP Duminy", "JP Duminy");
				addOption(document.match.mom,"Juan Theron", "Juan Theron");
				addOption(document.match.mom,"Daniel Harris", "Daniel Harris");
          }
          
          if(document.match.momTeam.value == 'DD'){
        	    addOption(document.match.mom,"Virender Sehwag", "Virender Sehwag");
				addOption(document.match.mom,"Aavishkar Salvi", "Aavishkar Salvi");
				addOption(document.match.mom,"Ajit Agarkar", "Ajit Agarkar");
				addOption(document.match.mom,"Irfan Pathan", "Irfan Pathan");
				addOption(document.match.mom,"Kuldeep Rawal", "Kuldeep Rawal");
				addOption(document.match.mom,"Manpreet Juneja", "Manpreet Juneja");
				addOption(document.match.mom,"Naman Ojha", "Naman Ojha");
				addOption(document.match.mom,"Pawan Negi", "Pawan Negi");
				addOption(document.match.mom,"Prashant Naik", "Prashant Naik");
				addOption(document.match.mom,"Puneet Bisht", "Puneet Bisht");
				addOption(document.match.mom,"Robin Bist", "Robin Bist");
				addOption(document.match.mom,"Shahbaz Nadeem", "Shahbaz Nadeem");
				addOption(document.match.mom,"Sunny Gupta", "Sunny Gupta");
				addOption(document.match.mom,"Tejashwi Yadav", "Tejashwi Yadav");
				addOption(document.match.mom,"Umesh Yadav", "Umesh Yadav");
				addOption(document.match.mom,"Unmukt Chand", "Unmukt Chand");
				addOption(document.match.mom,"Varun Aaron", "Varun Aaron");
				addOption(document.match.mom,"Venugopal Rao", "Venugopal Rao");
				addOption(document.match.mom,"Vikas Mishra", "Vikas Mishra");
				addOption(document.match.mom,"Yogesh Nagar", "Yogesh Nagar");
				addOption(document.match.mom,"Zafir Patel", "Zafir Patel");
				addOption(document.match.mom,"Aaron Finch", "Aaron Finch");
				addOption(document.match.mom,"David Warner", "David Warner");
				addOption(document.match.mom,"Doug Bracewell", "Doug Bracewell");
				addOption(document.match.mom,"Kevin Pietersen", "Kevin Pietersen");
				addOption(document.match.mom,"Mahela Jayawardene", "Mahela Jayawardene");
				addOption(document.match.mom,"Morne Morkel", "Morne Morkel");
				addOption(document.match.mom,"Roelof Van Der Merwe", "Roelof Van Der Merwe");
				addOption(document.match.mom,"Ross Taylor", "Ross Taylor");
				addOption(document.match.mom,"Travis Birt", "Travis Birt");
												
          }
          
          if(document.match.momTeam.value == 'KXP'){
        	  	addOption(document.match.mom,"Adam Gilchrist", "Adam Gilchrist");
				addOption(document.match.mom,"Abhishek Nayar", "Abhishek Nayar");
				addOption(document.match.mom,"Amit Yadav", "Amit Yadav");
				addOption(document.match.mom,"Bhargav Bhatt", "Bhargav Bhatt");
				addOption(document.match.mom,"Bipul Sharma", "Bipul Sharma");
				addOption(document.match.mom,"Gurkeerat Mann Singh", "Gurkeerat Mann Singh");
				addOption(document.match.mom,"Harmeet Singh Bansal", "Harmeet Singh Bansal");
				addOption(document.match.mom,"Mandeep Singh", "Mandeep Singh");
				addOption(document.match.mom,"Nitin Saini", "Nitin Saini");
				addOption(document.match.mom,"Paras Dogra", "Paras Dogra");
				addOption(document.match.mom,"Parvinder Awana", "Parvinder Awana");
				addOption(document.match.mom,"Paul Valthaty", "Paul Valthaty");
				addOption(document.match.mom,"Piyush Chawla", "Piyush Chawla");
				addOption(document.match.mom,"Praveen Kumar", "Praveen Kumar");
				addOption(document.match.mom,"R Sathish", "R Sathish");
				addOption(document.match.mom,"Shalabh Srivastava", "Shalabh Srivastava");
				addOption(document.match.mom,"Siddharth Chitnis", "Siddharth Chitnis");
				addOption(document.match.mom,"Sunny Singh", "Sunny Singh");
				addOption(document.match.mom,"Vikramjeet Malik", "Vikramjeet Malik");
				addOption(document.match.mom,"Ramesh Powar", "Ramesh Powar");
				addOption(document.match.mom,"David Hussey", "David Hussey");
				addOption(document.match.mom,"David Miller", "David Miller");
				addOption(document.match.mom,"Dimitri Mascarenhas", "Dimitri Mascarenhas");
				addOption(document.match.mom,"Nathan Rimmington", "Nathan Rimmington");
				addOption(document.match.mom,"Ryan Harris", "Ryan Harris");
				addOption(document.match.mom,"Shaun Marsh", "Shaun Marsh");
				addOption(document.match.mom,"Stuart Broad", "Stuart Broad");
				addOption(document.match.mom,"James Faulkner", "James Faulkner");
				addOption(document.match.mom,"Azhar Mahmood", "Azhar Mahmood");
												
          }
          
           if(document.match.momTeam.value == 'KKR'){
        	    addOption(document.match.mom,"Gautam Gambhir", "Gautam Gambhir");
				addOption(document.match.mom,"Chirag Jani", "Chirag Jani");
				addOption(document.match.mom,"Debabrata Das", "Debabrata Das");
				addOption(document.match.mom,"Iqbal Abdulla", "Iqbal Abdulla");
				addOption(document.match.mom,"Iresh Saxena", "Iresh Saxena");
				addOption(document.match.mom,"Jaidev Unadkat", "Jaidev Unadkat");
				addOption(document.match.mom,"L Balaji", "L Balaji");
				addOption(document.match.mom,"Laxmi Shukla", "Laxmi Shukla");
				addOption(document.match.mom,"Manoj Tiwari", "Manoj Tiwari");
				addOption(document.match.mom,"Manvinder Bisla", "Manvinder Bisla");
				addOption(document.match.mom,"Pradeep Sangwan", "Pradeep Sangwan");
				addOption(document.match.mom,"Rajat Bhatia", "Rajat Bhatia");
				addOption(document.match.mom,"Sanju Samson", "Sanju Samson");
				addOption(document.match.mom,"Sarabjit Ladda", "Sarabjit Ladda");
				addOption(document.match.mom,"Shami Ahmed", "Shami Ahmed");
				addOption(document.match.mom,"Yusuf Pathan", "Yusuf Pathan");
				addOption(document.match.mom,"Brad Haddin", "Brad Haddin");
				addOption(document.match.mom,"Brendon McCullum", "Brendon McCullum");
				addOption(document.match.mom,"Brett Lee", "Brett Lee");
				addOption(document.match.mom,"Eoin Morgan", "Eoin Morgan");
				addOption(document.match.mom,"Jacques Kallis", "Jacques Kallis");
				addOption(document.match.mom,"James Pattinson", "James Pattinson");
				addOption(document.match.mom,"Marchant de Lange ", "Marchant de Lange ");
				addOption(document.match.mom,"Ryan ten Doeschate", "Ryan ten Doeschate");
				addOption(document.match.mom,"Shakib Al Hasasn", "Shakib Al Hasasn");
				addOption(document.match.mom,"Sunil Narine", "Sunil Narine");
          }
          
          if(document.match.momTeam.value == 'MI'){
        	  addOption(document.match.mom,"Sachin Tendulkar", "Sachin Tendulkar");
				addOption(document.match.mom,"Abu Nechim", "Abu Nechim");
				addOption(document.match.mom,"Aditya Tare", "Aditya Tare");
				addOption(document.match.mom,"Ambati Rayudu", "Ambati Rayudu");
				addOption(document.match.mom,"Amitoze Singh", "Amitoze Singh");
				addOption(document.match.mom,"Apporv Wankhade", "Apporv Wankhade");
				addOption(document.match.mom,"Dhawal Kulkarni", "Dhawal Kulkarni");
				addOption(document.match.mom,"Dinesh Karthik", "Dinesh Karthik");
				addOption(document.match.mom,"Harbhajan Singh", "Harbhajan Singh");
				addOption(document.match.mom,"Jaydev Shah", "Jaydev Shah");
				addOption(document.match.mom,"Kuldeep Yadavl", "Kuldeep Yadav");
				addOption(document.match.mom,"Munaf Patel", "Munaf Patel");
				addOption(document.match.mom,"Pawan Suyal", "Pawan Suyal");
				addOption(document.match.mom,"Pragyan Ojha", "Pragyan Ojha");
				addOption(document.match.mom,"Rahul Shukla", "Rahul Shukla");
				addOption(document.match.mom,"Rohit Sharma", "Rohit Sharma");
				addOption(document.match.mom,"R P Singh", "R P Singh");
				addOption(document.match.mom,"Sujit Nayak", "Sujit Nayak");
				addOption(document.match.mom,"Suryakumar Yadav", "Suryakumar Yadav");
				addOption(document.match.mom,"Sushant Marathe", "Sushant Marathe");
				addOption(document.match.mom,"T Suman", "T Suman");
				addOption(document.match.mom,"Yuzvendra Chahal", "Yuzvendra Chahal");
				addOption(document.match.mom,"Aiden Bllzzard", "Aiden Bllzzard");
				addOption(document.match.mom,"Clint McKay", "Clint McKay");
				addOption(document.match.mom,"David Jacobs", "David Jacobs");
				addOption(document.match.mom,"Herschelle Gibbs", "Herschelle Gibbs ");
				addOption(document.match.mom,"James Franklin", "James Franklin");
				addOption(document.match.mom,"Kieron Pollard", "Kieron Pollard");
				addOption(document.match.mom,"Lasith Malinga", "Lasith Malinga");
				addOption(document.match.mom,"Richard Levi", "Richard Levi");
				addOption(document.match.mom,"Robin John Peterson", "Robin John Peterson");
				addOption(document.match.mom,"Thisara Perera", "Thisara Perera");
          }
          
           if(document.match.momTeam.value == 'RR'){
        	   addOption(document.match.mom,"Rahul Dravid", "Rahul Dravid");
	            addOption(document.match.mom,"Aakash Chopra", "Aakash Chopra");
				addOption(document.match.mom,"Abhishek Raut", "Abhishek Raut");
				addOption(document.match.mom,"Aditya Dole", "Aditya Dole");
				addOption(document.match.mom,"Ajinkya Rahane", "Ajinkya Rahane");
				addOption(document.match.mom,"Ajit Chandila", "Ajit Chandila");
				addOption(document.match.mom,"Amit Paunikar", "Amit Paunikar");
				addOption(document.match.mom,"Amit Singh", "Amit Singh");
				addOption(document.match.mom,"Ankeet Chavan", "Ankeet Chavan");
				addOption(document.match.mom,"Ashok Menaria", "Ashok Menaria");
				addOption(document.match.mom,"Deepak Chahar", "Deepak Chahar");
				addOption(document.match.mom,"Dishant Harendra Yagnik", "Dishant Harendra Yagnik");
				addOption(document.match.mom,"Faiz Fazal", "Faiz Fazal");
				addOption(document.match.mom,"Gajendra Singh", "Gajendra Singh");
				addOption(document.match.mom,"Pankaj Singh", "Pankaj Singh");
				addOption(document.match.mom,"S Sreesanth", "S Sreesanth");
				addOption(document.match.mom,"Samad Fallah", "Samad Fallah");
				addOption(document.match.mom,"Siddharth Trivedi", "Siddharth Trivedi");
				addOption(document.match.mom,"Stuart Binny", "Stuart Binny");
				addOption(document.match.mom,"Sumit Narwal", "Sumit Narwal");
				addOption(document.match.mom,"Shreevats Goswami", "Shreevats Goswami");
				addOption(document.match.mom,"Brad Hogg", "Brad Hogg");
				addOption(document.match.mom,"Bradley Hodge", "Bradley Hodge");
				addOption(document.match.mom,"Dinesh Chandimal", "Dinesh Chandimal");
				addOption(document.match.mom,"Johan Botha", "Johan Botha");
				addOption(document.match.mom,"Kevon Cooper", "Kevon Cooper");
				addOption(document.match.mom,"Paul Collingwood", "Paul Collingwood");
				addOption(document.match.mom,"Shane Watson", "Shane Watson");
				addOption(document.match.mom,"Shaun Tait", "Shaun Tait");
           }
           
           
            if(document.match.momTeam.value == 'PW'){
            	addOption(document.match.mom,"Sourav Ganguly", "Sourav Ganguly");
				addOption(document.match.mom,"Ali Murtaza", "Ali Murtaza");
				addOption(document.match.mom,"Anustup Majumdar", "Anustup Majumdar");
				addOption(document.match.mom,"Ashish Nehra", "Ashish Nehra");
				addOption(document.match.mom,"Ashoke Dinda", "Ashoke Dinda");
				addOption(document.match.mom,"Bhuvneshwar Kumar", "Bhuvneshwar Kumar");
				addOption(document.match.mom,"Dheeraj Jadhav", "Dheeraj Jadhav");
				addOption(document.match.mom,"Eklavya Dwivedi", "Eklavya Dwivedi");
				addOption(document.match.mom,"Harshad Khadiwale", "Harshad Khadiwale");
				addOption(document.match.mom,"Harpreet Singh", "Harpreet Singh");
				addOption(document.match.mom,"Kamran Khan", "Kamran Khan");
				addOption(document.match.mom,"Krishnakant Upadhyay", "Krishnakant Upadhyay");
				addOption(document.match.mom,"Mahesh Rawat", "Mahesh Rawat");
				addOption(document.match.mom,"Manish Pandey", "Manish Pandey");
				addOption(document.match.mom,"Mithun Manhas", "Mithun Manhas");
				addOption(document.match.mom,"Mohnish Mishra", "Mohnish Mishra");
				addOption(document.match.mom,"Murali Karthik", "Murali Karthik");
				addOption(document.match.mom,"Raiphi Gomez", "Raiphi Gomez");
				addOption(document.match.mom,"Rahul Sharma", "Rahul Sharma");
				addOption(document.match.mom,"Robin Uthappa", "Robin Uthappa");
				addOption(document.match.mom,"Sachin Rana", "Sachin Rana");
				addOption(document.match.mom,"Shrikant Wagh", "Shrikant Wagh");
				addOption(document.match.mom,"Alfonson Thomas", "Alfonson Thomas");
			    addOption(document.match.mom,"Agelo Mathews", "Agelo Mathews");
				addOption(document.match.mom,"Callum Ferguson", "Callum Ferguson");
				addOption(document.match.mom,"Graeme Smith", "Graeme Smith");
				addOption(document.match.mom,"James Hopes", "James Hopes");
			    addOption(document.match.mom,"Jesse Ryder", "Jesse Ryder");
				addOption(document.match.mom,"Luke Wright", "Luke Wright");
				addOption(document.match.mom,"Marlon Samuels", "Marlon Samuels");
				addOption(document.match.mom,"Wayne Parnell", "Wayne Parnell");
           }
           
	}
	
	function getPlayers1(){
		removeAllOptions(document.match.player1);
		addOption(document.match.player1, "--", "--Select Team--", "");
		
		if(document.match.player1Team.value == 'RCB'){
			addOption(document.match.player1,"Daniel Vettori", "Daniel Vettori");
			addOption(document.match.player1,"Abhimanyu Mithun", "Abhimanyu Mithun");
			addOption(document.match.player1,"Abrar Anjum Kazi", "Abrar Anjum Kazi");
			addOption(document.match.player1,"Arun Karthik", "Arun Karthik");
			addOption(document.match.player1,"Asad Khan Pathan", "Asad Khan Pathan");
			addOption(document.match.player1,"CM Gautam", "CM Gautam");
			addOption(document.match.player1,"Cheteshwar Pujara", "Cheteshwar Pujara");
			addOption(document.match.player1,"Harshal Patel", "Harshal Patel");
			addOption(document.match.player1,"KP Appanna", "KP Appanna");
			addOption(document.match.player1,"Karun Nair", "Karun Nair");
			addOption(document.match.player1,"Mayank Agarwal", "Mayank Agarwal");
			addOption(document.match.player1,"Mohammed Kaif", "Mohammed Kaif");
		    addOption(document.match.player1,"Raju Bhatkal", "Raju Bhatkal");
			addOption(document.match.player1,"Ronit More", "Ronit More");
			addOption(document.match.player1,"Ryan Ninan", "Ryan Ninan");
			addOption(document.match.player1,"R Vinay Kumar", "R Vinay Kumar");
			addOption(document.match.player1,"Saurabh Tiwary", "Saurabh Tiwary");
			addOption(document.match.player1,"Sreenath Aravind", "Sreenath Aravind");
			addOption(document.match.player1,"S Thiyagrajan", "S Thiyagrajan");
			addOption(document.match.player1,"Syed Mohammad", "Syed Mohammad");
	        addOption(document.match.player1,"Virat Kohli", "Virat Kohli");
		    addOption(document.match.player1,"Vijay Zol", "Vijay Zol");
			addOption(document.match.player1,"Zaheer Khan", "Zaheer Khan");
			addOption(document.match.player1,"A B De Viliers", "A B De Viliers");
		    addOption(document.match.player1,"Andrew McDonald", "Andrew McDonald");
			addOption(document.match.player1,"Charl Langeveldt", "Charl Langeveldt");
			addOption(document.match.player1,"Chris Gayle", "Chris Gayle");
			addOption(document.match.player1,"Dirk Nannes", "Dirk Nannes");
			addOption(document.match.player1,"Luke Pomersbach", "Luke Pomersbach");
			addOption(document.match.player1,"Muttiah Muralitharan", "Muttiah Muralitharan");
			addOption(document.match.player1,"Rile Rossouw", "Rile Rossouw");
			addOption(document.match.player1,"T Dilshan", "T Dilshan");
         }
         
          if(document.match.player1Team.value == 'CSK'){
        	  addOption(document.match.player1,"M S Dhoni", "M S Dhoni");
              addOption(document.match.player1,"Abhinav Mukund", "Abhinav Mukund");
              addOption(document.match.player1,"G Vignesh", "G Vignesh");
				addOption(document.match.player1,"Joginder Sharma", "Joginder Sharma");
				addOption(document.match.player1,"Kuthethur Vasudevadas", "Kuthethur Vasudevadas");
				addOption(document.match.player1,"Murali Vijay", "Murali Vijay");
				addOption(document.match.player1,"Ravichandran Ashwin", "Ravichandran Ashwin");
				addOption(document.match.player1,"Ravindra Jadeja", "Ravindra Jadeja");
				addOption(document.match.player1,"Shadab Jakati", "Shadab Jakati");
				addOption(document.match.player1,"Srikkanth Anirudha", "Srikkanth Anirudha");
				addOption(document.match.player1,"Subramaniam Badrinath", "Subramaniam Badrinath");
				addOption(document.match.player1,"Sudeep Tyagi", "Sudeep Tyagi");
				addOption(document.match.player1,"Suresh Raina", "Suresh Raina");
				addOption(document.match.player1,"Vijaykumar Yo Mahesh", "Vijaykumar Yo Mahesh");
				addOption(document.match.player1,"Wriddhiman Saha", "Wriddhiman Saha");
				addOption(document.match.player1,"Albie Morkel", "Albie Morkel");
				addOption(document.match.player1,"Ben Hilfenhaus", "Ben Hilfenhaus");
				addOption(document.match.player1,"Doug Bollinger", "Doug Bollinger");
				addOption(document.match.player1,"Dwayne Bravo", "Dwayne Bravo");
				addOption(document.match.player1,"Francois Du Plessis", "Francois Du Plessis");
				addOption(document.match.player1,"George Bailey", "George Bailey");
				addOption(document.match.player1,"Michael Hussey", "Michael Hussey");
				addOption(document.match.player1,"Nuwan Kulasekara", "Nuwan Kulasekara");
				addOption(document.match.player1,"Scott Styris", "Scott Styris");
				addOption(document.match.player1,"Suraj Randiv", "Suraj Randiv");
				
          }
         
         if(document.match.player1Team.value == 'DC'){
        	 addOption(document.match.player1,"Kumar Sangakkara", "Kumar Sangakkara");
				addOption(document.match.player1,"Abhishek Jhunjhunwala", "Abhishek Jhunjhunwala");
				addOption(document.match.player1,"Ahmed Quadri", "Ahmed Quadri");
				addOption(document.match.player1,"Akash Bhandari", "Akash Bhandari");
				addOption(document.match.player1,"Anand Rajan", "Anand Rajan");
				addOption(document.match.player1,"Amit Mishra", "Amit Mishra");
				addOption(document.match.player1,"Ankit Sharma", "Ankit Sharma");
				addOption(document.match.player1,"Arjun Yadav", "Arjun Yadav");
				addOption(document.match.player1,"Ashish Reddy", "Ashish Reddy");
				addOption(document.match.player1,"Atchuta Rao", "Atchuta Rao");
				addOption(document.match.player1,"Bharat Chipli", "Bharat Chipli");
				addOption(document.match.player1,"Biplab Samantray", "Biplab Samantray");
				addOption(document.match.player1,"Dwaraka Ravi Teja", "Dwaraka Ravi Teja");
				addOption(document.match.player1,"Ishank Jaggi", "Ishank Jaggi");
				addOption(document.match.player1,"Ishant sharma", "Ishant sharma");
				addOption(document.match.player1,"Manpreet Gony", "Manpreet Gony");
				addOption(document.match.player1,"Parthiv Patel", "Parthiv Patel");
				addOption(document.match.player1,"Shikhar Dhawan", "Shikhar Dhawan");
				addOption(document.match.player1,"Sneha Kishore", "Sneha Kishore");
				addOption(document.match.player1,"Sunny Sohal", "Sunny Sohal");
				addOption(document.match.player1,"Tanmay Mishra", "Tanmay Mishra");
				addOption(document.match.player1,"Tanmay Srivastava", "Tanmay Srivastava");
				addOption(document.match.player1,"TP Sudhindra", "TP Sudhindra");
				addOption(document.match.player1,"Veer Pratap Singh", "Veer Pratap Singh");
				addOption(document.match.player1,"Cameron White", "Cameron White");
				addOption(document.match.player1,"Chris Lynn", "Chris Lynn");
				addOption(document.match.player1,"Dale Steyn", "Dale Steyn");
				addOption(document.match.player1,"Daniel Christian", "Daniel Christian");
				addOption(document.match.player1,"JP Duminy", "JP Duminy");
				addOption(document.match.player1,"Juan Theron", "Juan Theron");
				addOption(document.match.player1,"Daniel Harris", "Daniel Harris");
          }
          
          if(document.match.player1Team.value == 'DD'){
        	  addOption(document.match.player1,"Virender Sehwag", "Virender Sehwag");
				addOption(document.match.player1,"Aavishkar Salvi", "Aavishkar Salvi");
				addOption(document.match.player1,"Ajit Agarkar", "Ajit Agarkar");
				addOption(document.match.player1,"Irfan Pathan", "Irfan Pathan");
				addOption(document.match.player1,"Kuldeep Rawal", "Kuldeep Rawal");
				addOption(document.match.player1,"Manpreet Juneja", "Manpreet Juneja");
				addOption(document.match.player1,"Naman Ojha", "Naman Ojha");
				addOption(document.match.player1,"Pawan Negi", "Pawan Negi");
				addOption(document.match.player1,"Prashant Naik", "Prashant Naik");
				addOption(document.match.player1,"Puneet Bisht", "Puneet Bisht");
				addOption(document.match.player1,"Robin Bist", "Robin Bist");
				addOption(document.match.player1,"Shahbaz Nadeem", "Shahbaz Nadeem");
				addOption(document.match.player1,"Sunny Gupta", "Sunny Gupta");
				addOption(document.match.player1,"Tejashwi Yadav", "Tejashwi Yadav");
				addOption(document.match.player1,"Umesh Yadav", "Umesh Yadav");
				addOption(document.match.player1,"Unmukt Chand", "Unmukt Chand");
				addOption(document.match.player1,"Varun Aaron", "Varun Aaron");
				addOption(document.match.player1,"Venugopal Rao", "Venugopal Rao");
				addOption(document.match.player1,"Vikas Mishra", "Vikas Mishra");
				addOption(document.match.player1,"Yogesh Nagar", "Yogesh Nagar");
				addOption(document.match.player1,"Zafir Patel", "Zafir Patel");
				addOption(document.match.player1,"Aaron Finch", "Aaron Finch");
				addOption(document.match.player1,"David Warner", "David Warner");
				addOption(document.match.player1,"Doug Bracewell", "Doug Bracewell");
				addOption(document.match.player1,"Kevin Pietersen", "Kevin Pietersen");
				addOption(document.match.player1,"Mahela Jayawardene", "Mahela Jayawardene");
				addOption(document.match.player1,"Morne Morkel", "Morne Morkel");
				addOption(document.match.player1,"Roelof Van Der Merwe", "Roelof Van Der Merwe");
				addOption(document.match.player1,"Ross Taylor", "Ross Taylor");
				addOption(document.match.player1,"Travis Birt", "Travis Birt");
												
          }
          
          if(document.match.player1Team.value == 'KXP'){
        	  addOption(document.match.player1,"Adam Gilchrist", "Adam Gilchrist");
				addOption(document.match.player1,"Abhishek Nayar", "Abhishek Nayar");
				addOption(document.match.player1,"Amit Yadav", "Amit Yadav");
				addOption(document.match.player1,"Bhargav Bhatt", "Bhargav Bhatt");
				addOption(document.match.player1,"Bipul Sharma", "Bipul Sharma");
				addOption(document.match.player1,"Gurkeerat Mann Singh", "Gurkeerat Mann Singh");
				addOption(document.match.player1,"Harmeet Singh Bansal", "Harmeet Singh Bansal");
				addOption(document.match.player1,"Mandeep Singh", "Mandeep Singh");
				addOption(document.match.player1,"Nitin Saini", "Nitin Saini");
				addOption(document.match.player1,"Paras Dogra", "Paras Dogra");
				addOption(document.match.player1,"Parvinder Awana", "Parvinder Awana");
				addOption(document.match.player1,"Paul Valthaty", "Paul Valthaty");
				addOption(document.match.player1,"Piyush Chawla", "Piyush Chawla");
				addOption(document.match.player1,"Praveen Kumar", "Praveen Kumar");
				addOption(document.match.player1,"R Sathish", "R Sathish");
				addOption(document.match.player1,"Shalabh Srivastava", "Shalabh Srivastava");
				addOption(document.match.player1,"Siddharth Chitnis", "Siddharth Chitnis");
				addOption(document.match.player1,"Sunny Singh", "Sunny Singh");
				addOption(document.match.player1,"Vikramjeet Malik", "Vikramjeet Malik");
				addOption(document.match.player1,"Ramesh Powar", "Ramesh Powar");
				addOption(document.match.player1,"David Hussey", "David Hussey");
				addOption(document.match.player1,"David Miller", "David Miller");
				addOption(document.match.player1,"Dimitri Mascarenhas", "Dimitri Mascarenhas");
				addOption(document.match.player1,"Nathan Rimmington", "Nathan Rimmington");
				addOption(document.match.player1,"Ryan Harris", "Ryan Harris");
				addOption(document.match.player1,"Shaun Marsh", "Shaun Marsh");
				addOption(document.match.player1,"Stuart Broad", "Stuart Broad");
				addOption(document.match.player1,"James Faulkner", "James Faulkner");
				addOption(document.match.player1,"Azhar Mahmood", "Azhar Mahmood");
												
          }
          
           if(document.match.player1Team.value == 'KKR'){
        	   addOption(document.match.player1,"Gautam Gambhir", "Gautam Gambhir");
				addOption(document.match.player1,"Chirag Jani", "Chirag Jani");
				addOption(document.match.player1,"Debabrata Das", "Debabrata Das");
				addOption(document.match.player1,"Iqbal Abdulla", "Iqbal Abdulla");
				addOption(document.match.player1,"Iresh Saxena", "Iresh Saxena");
				addOption(document.match.player1,"Jaidev Unadkat", "Jaidev Unadkat");
				addOption(document.match.player1,"L Balaji", "L Balaji");
				addOption(document.match.player1,"Laxmi Shukla", "Laxmi Shukla");
				addOption(document.match.player1,"Manoj Tiwari", "Manoj Tiwari");
				addOption(document.match.player1,"Manvinder Bisla", "Manvinder Bisla");
				addOption(document.match.player1,"Pradeep Sangwan", "Pradeep Sangwan");
				addOption(document.match.player1,"Rajat Bhatia", "Rajat Bhatia");
				addOption(document.match.player1,"Sanju Samson", "Sanju Samson");
				addOption(document.match.player1,"Sarabjit Ladda", "Sarabjit Ladda");
				addOption(document.match.player1,"Shami Ahmed", "Shami Ahmed");
				addOption(document.match.player1,"Yusuf Pathan", "Yusuf Pathan");
				addOption(document.match.player1,"Brad Haddin", "Brad Haddin");
				addOption(document.match.player1,"Brendon McCullum", "Brendon McCullum");
				addOption(document.match.player1,"Brett Lee", "Brett Lee");
				addOption(document.match.player1,"Eoin Morgan", "Eoin Morgan");
				addOption(document.match.player1,"Jacques Kallis", "Jacques Kallis");
				addOption(document.match.player1,"James Pattinson", "James Pattinson");
				addOption(document.match.player1,"Marchant de Lange ", "Marchant de Lange ");
				addOption(document.match.player1,"Ryan ten Doeschate", "Ryan ten Doeschate");
				addOption(document.match.player1,"Shakib Al Hasasn", "Shakib Al Hasasn");
				addOption(document.match.player1,"Sunil Narine", "Sunil Narine");
          }
          
          if(document.match.player1Team.value == 'MI'){
        	  addOption(document.match.player1,"Sachin Tendulkar", "Sachin Tendulkar");
				addOption(document.match.player1,"Abu Nechim", "Abu Nechim");
				addOption(document.match.player1,"Aditya Tare", "Aditya Tare");
				addOption(document.match.player1,"Ambati Rayudu", "Ambati Rayudu");
				addOption(document.match.player1,"Amitoze Singh", "Amitoze Singh");
				addOption(document.match.player1,"Apporv Wankhade", "Apporv Wankhade");
				addOption(document.match.player1,"Dhawal Kulkarni", "Dhawal Kulkarni");
				addOption(document.match.player1,"Dinesh Karthik", "Dinesh Karthik");
				addOption(document.match.player1,"Harbhajan Singh", "Harbhajan Singh");
				addOption(document.match.player1,"Jaydev Shah", "Jaydev Shah");
				addOption(document.match.player1,"Kuldeep Yadavl", "Kuldeep Yadav");
				addOption(document.match.player1,"Munaf Patel", "Munaf Patel");
				addOption(document.match.player1,"Pawan Suyal", "Pawan Suyal");
				addOption(document.match.player1,"Pragyan Ojha", "Pragyan Ojha");
				addOption(document.match.player1,"Rahul Shukla", "Rahul Shukla");
				addOption(document.match.player1,"Rohit Sharma", "Rohit Sharma");
				addOption(document.match.player1,"R P Singh", "R P Singh");
				addOption(document.match.player1,"Sujit Nayak", "Sujit Nayak");
				addOption(document.match.player1,"Suryakumar Yadav", "Suryakumar Yadav");
				addOption(document.match.player1,"Sushant Marathe", "Sushant Marathe");
				addOption(document.match.player1,"T Suman", "T Suman");
				addOption(document.match.player1,"Yuzvendra Chahal", "Yuzvendra Chahal");
				addOption(document.match.player1,"Aiden Bllzzard", "Aiden Bllzzard");
				addOption(document.match.player1,"Clint McKay", "Clint McKay");
				addOption(document.match.player1,"David Jacobs", "David Jacobs");
				addOption(document.match.player1,"Herschelle Gibbs", "Herschelle Gibbs ");
				addOption(document.match.player1,"James Franklin", "James Franklin");
				addOption(document.match.player1,"Kieron Pollard", "Kieron Pollard");
				addOption(document.match.player1,"Lasith Malinga", "Lasith Malinga");
				addOption(document.match.player1,"Richard Levi", "Richard Levi");
				addOption(document.match.player1,"Robin John Peterson", "Robin John Peterson");
				addOption(document.match.player1,"Thisara Perera", "Thisara Perera");
          }
          
           if(document.match.player1Team.value == 'RR'){
        	   addOption(document.match.player1,"Rahul Dravid", "Rahul Dravid");
	            addOption(document.match.player1,"Aakash Chopra", "Aakash Chopra");
				addOption(document.match.player1,"Abhishek Raut", "Abhishek Raut");
				addOption(document.match.player1,"Aditya Dole", "Aditya Dole");
				addOption(document.match.player1,"Ajinkya Rahane", "Ajinkya Rahane");
				addOption(document.match.player1,"Ajit Chandila", "Ajit Chandila");
				addOption(document.match.player1,"Amit Paunikar", "Amit Paunikar");
				addOption(document.match.player1,"Amit Singh", "Amit Singh");
				addOption(document.match.player1,"Ankeet Chavan", "Ankeet Chavan");
				addOption(document.match.player1,"Ashok Menaria", "Ashok Menaria");
				addOption(document.match.player1,"Deepak Chahar", "Deepak Chahar");
				addOption(document.match.player1,"Dishant Harendra Yagnik", "Dishant Harendra Yagnik");
				addOption(document.match.player1,"Faiz Fazal", "Faiz Fazal");
				addOption(document.match.player1,"Gajendra Singh", "Gajendra Singh");
				addOption(document.match.player1,"Pankaj Singh", "Pankaj Singh");
				addOption(document.match.player1,"S Sreesanth", "S Sreesanth");
				addOption(document.match.player1,"Samad Fallah", "Samad Fallah");
				addOption(document.match.player1,"Siddharth Trivedi", "Siddharth Trivedi");
				addOption(document.match.player1,"Stuart Binny", "Stuart Binny");
				addOption(document.match.player1,"Sumit Narwal", "Sumit Narwal");
				addOption(document.match.player1,"Shreevats Goswami", "Shreevats Goswami");
				addOption(document.match.player1,"Brad Hogg", "Brad Hogg");
				addOption(document.match.player1,"Bradley Hodge", "Bradley Hodge");
				addOption(document.match.player1,"Dinesh Chandimal", "Dinesh Chandimal");
				addOption(document.match.player1,"Johan Botha", "Johan Botha");
				addOption(document.match.player1,"Kevon Cooper", "Kevon Cooper");
				addOption(document.match.player1,"Paul Collingwood", "Paul Collingwood");
				addOption(document.match.player1,"Shane Watson", "Shane Watson");
				addOption(document.match.player1,"Shaun Tait", "Shaun Tait");
           }
           
           
            if(document.match.player1Team.value == 'PW'){
            	addOption(document.match.player1,"Sourav Ganguly", "Sourav Ganguly");
				addOption(document.match.player1,"Ali Murtaza", "Ali Murtaza");
				addOption(document.match.player1,"Anustup Majumdar", "Anustup Majumdar");
				addOption(document.match.player1,"Ashish Nehra", "Ashish Nehra");
				addOption(document.match.player1,"Ashoke Dinda", "Ashoke Dinda");
				addOption(document.match.player1,"Bhuvneshwar Kumar", "Bhuvneshwar Kumar");
				addOption(document.match.player1,"Dheeraj Jadhav", "Dheeraj Jadhav");
				addOption(document.match.player1,"Eklavya Dwivedi", "Eklavya Dwivedi");
				addOption(document.match.player1,"Harshad Khadiwale", "Harshad Khadiwale");
				addOption(document.match.player1,"Harpreet Singh", "Harpreet Singh");
				addOption(document.match.player1,"Kamran Khan", "Kamran Khan");
				addOption(document.match.player1,"Krishnakant Upadhyay", "Krishnakant Upadhyay");
				addOption(document.match.player1,"Mahesh Rawat", "Mahesh Rawat");
				addOption(document.match.player1,"Manish Pandey", "Manish Pandey");
				addOption(document.match.player1,"Mithun Manhas", "Mithun Manhas");
				addOption(document.match.player1,"Mohnish Mishra", "Mohnish Mishra");
				addOption(document.match.player1,"Murali Karthik", "Murali Karthik");
				addOption(document.match.player1,"Raiphi Gomez", "Raiphi Gomez");
				addOption(document.match.player1,"Rahul Sharma", "Rahul Sharma");
				addOption(document.match.player1,"Robin Uthappa", "Robin Uthappa");
				addOption(document.match.player1,"Sachin Rana", "Sachin Rana");
				addOption(document.match.player1,"Shrikant Wagh", "Shrikant Wagh");
				addOption(document.match.player1,"Alfonson Thomas", "Alfonson Thomas");
			    addOption(document.match.player1,"Agelo Mathews", "Agelo Mathews");
				addOption(document.match.player1,"Callum Ferguson", "Callum Ferguson");
				addOption(document.match.player1,"Graeme Smith", "Graeme Smith");
				addOption(document.match.player1,"James Hopes", "James Hopes");
			    addOption(document.match.player1,"Jesse Ryder", "Jesse Ryder");
				addOption(document.match.player1,"Luke Wright", "Luke Wright");
				addOption(document.match.player1,"Marlon Samuels", "Marlon Samuels");
				addOption(document.match.player1,"Wayne Parnell", "Wayne Parnell");
           }
          
	}

	function getPlayers2(){
		removeAllOptions(document.match.player2);
		addOption(document.match.player2, "--", "--Select Team--", "");
		
		 if(document.match.player2Team.value == 'RCB'){
			 addOption(document.match.player2,"Daniel Vettori", "Daniel Vettori");
				addOption(document.match.player2,"Abhimanyu Mithun", "Abhimanyu Mithun");
				addOption(document.match.player2,"Abrar Anjum Kazi", "Abrar Anjum Kazi");
				addOption(document.match.player2,"Arun Karthik", "Arun Karthik");
				addOption(document.match.player2,"Asad Khan Pathan", "Asad Khan Pathan");
				addOption(document.match.player2,"CM Gautam", "CM Gautam");
				addOption(document.match.player2,"Cheteshwar Pujara", "Cheteshwar Pujara");
				addOption(document.match.player2,"Harshal Patel", "Harshal Patel");
				addOption(document.match.player2,"KP Appanna", "KP Appanna");
				addOption(document.match.player2,"Karun Nair", "Karun Nair");
				addOption(document.match.player2,"Mayank Agarwal", "Mayank Agarwal");
				addOption(document.match.player2,"Mohammed Kaif", "Mohammed Kaif");
			    addOption(document.match.player2,"Raju Bhatkal", "Raju Bhatkal");
				addOption(document.match.player2,"Ronit More", "Ronit More");
				addOption(document.match.player2,"Ryan Ninan", "Ryan Ninan");
				addOption(document.match.player2,"R Vinay Kumar", "R Vinay Kumar");
				addOption(document.match.player2,"Saurabh Tiwary", "Saurabh Tiwary");
				addOption(document.match.player2,"Sreenath Aravind", "Sreenath Aravind");
				addOption(document.match.player2,"S Thiyagrajan", "S Thiyagrajan");
				addOption(document.match.player2,"Syed Mohammad", "Syed Mohammad");
		        addOption(document.match.player2,"Virat Kohli", "Virat Kohli");
			    addOption(document.match.player2,"Vijay Zol", "Vijay Zol");
				addOption(document.match.player2,"Zaheer Khan", "Zaheer Khan");
				addOption(document.match.player2,"A B De Viliers", "A B De Viliers");
			    addOption(document.match.player2,"Andrew McDonald", "Andrew McDonald");
				addOption(document.match.player2,"Charl Langeveldt", "Charl Langeveldt");
				addOption(document.match.player2,"Chris Gayle", "Chris Gayle");
				addOption(document.match.player2,"Dirk Nannes", "Dirk Nannes");
				addOption(document.match.player2,"Luke Pomersbach", "Luke Pomersbach");
				addOption(document.match.player2,"Muttiah Muralitharan", "Muttiah Muralitharan");
				addOption(document.match.player2,"Rile Rossouw", "Rile Rossouw");
				addOption(document.match.player2,"T Dilshan", "T Dilshan");
         }
         
          if(document.match.player2Team.value == 'CSK'){
        	  addOption(document.match.player2,"M S Dhoni", "M S Dhoni");
              addOption(document.match.player2,"Abhinav Mukund", "Abhinav Mukund");
              addOption(document.match.player2,"G Vignesh", "G Vignesh");
				addOption(document.match.player2,"Joginder Sharma", "Joginder Sharma");
				addOption(document.match.player2,"Kuthethur Vasudevadas", "Kuthethur Vasudevadas");
				addOption(document.match.player2,"Murali Vijay", "Murali Vijay");
				addOption(document.match.player2,"Ravichandran Ashwin", "Ravichandran Ashwin");
				addOption(document.match.player2,"Ravindra Jadeja", "Ravindra Jadeja");
				addOption(document.match.player2,"Shadab Jakati", "Shadab Jakati");
				addOption(document.match.player2,"Srikkanth Anirudha", "Srikkanth Anirudha");
				addOption(document.match.player2,"Subramaniam Badrinath", "Subramaniam Badrinath");
				addOption(document.match.player2,"Sudeep Tyagi", "Sudeep Tyagi");
				addOption(document.match.player2,"Suresh Raina", "Suresh Raina");
				addOption(document.match.player2,"Vijaykumar Yo Mahesh", "Vijaykumar Yo Mahesh");
				addOption(document.match.player2,"Wriddhiman Saha", "Wriddhiman Saha");
				addOption(document.match.player2,"Albie Morkel", "Albie Morkel");
				addOption(document.match.player2,"Ben Hilfenhaus", "Ben Hilfenhaus");
				addOption(document.match.player2,"Doug Bollinger", "Doug Bollinger");
				addOption(document.match.player2,"Dwayne Bravo", "Dwayne Bravo");
				addOption(document.match.player2,"Francois Du Plessis", "Francois Du Plessis");
				addOption(document.match.player2,"George Bailey", "George Bailey");
				addOption(document.match.player2,"Michael Hussey", "Michael Hussey");
				addOption(document.match.player2,"Nuwan Kulasekara", "Nuwan Kulasekara");
				addOption(document.match.player2,"Scott Styris", "Scott Styris");
				addOption(document.match.player2,"Suraj Randiv", "Suraj Randiv");
				
          }
         
         if(document.match.player2Team.value == 'DC'){
        	 addOption(document.match.player2,"Kumar Sangakkara", "Kumar Sangakkara");
				addOption(document.match.player2,"Abhishek Jhunjhunwala", "Abhishek Jhunjhunwala");
				addOption(document.match.player2,"Ahmed Quadri", "Ahmed Quadri");
				addOption(document.match.player2,"Akash Bhandari", "Akash Bhandari");
				addOption(document.match.player2,"Anand Rajan", "Anand Rajan");
				addOption(document.match.player2,"Amit Mishra", "Amit Mishra");
				addOption(document.match.player2,"Ankit Sharma", "Ankit Sharma");
				addOption(document.match.player2,"Arjun Yadav", "Arjun Yadav");
				addOption(document.match.player2,"Ashish Reddy", "Ashish Reddy");
				addOption(document.match.player2,"Atchuta Rao", "Atchuta Rao");
				addOption(document.match.player2,"Bharat Chipli", "Bharat Chipli");
				addOption(document.match.player2,"Biplab Samantray", "Biplab Samantray");
				addOption(document.match.player2,"Dwaraka Ravi Teja", "Dwaraka Ravi Teja");
				addOption(document.match.player2,"Ishank Jaggi", "Ishank Jaggi");
				addOption(document.match.player2,"Ishant sharma", "Ishant sharma");
				addOption(document.match.player2,"Manpreet Gony", "Manpreet Gony");
				addOption(document.match.player2,"Parthiv Patel", "Parthiv Patel");
				addOption(document.match.player2,"Shikhar Dhawan", "Shikhar Dhawan");
				addOption(document.match.player2,"Sneha Kishore", "Sneha Kishore");
				addOption(document.match.player2,"Sunny Sohal", "Sunny Sohal");
				addOption(document.match.player2,"Tanmay Mishra", "Tanmay Mishra");
				addOption(document.match.player2,"Tanmay Srivastava", "Tanmay Srivastava");
				addOption(document.match.player2,"TP Sudhindra", "TP Sudhindra");
				addOption(document.match.player2,"Veer Pratap Singh", "Veer Pratap Singh");
				addOption(document.match.player2,"Cameron White", "Cameron White");
				addOption(document.match.player2,"Chris Lynn", "Chris Lynn");
				addOption(document.match.player2,"Dale Steyn", "Dale Steyn");
				addOption(document.match.player2,"Daniel Christian", "Daniel Christian");
				addOption(document.match.player2,"JP Duminy", "JP Duminy");
				addOption(document.match.player2,"Juan Theron", "Juan Theron");
				addOption(document.match.player2,"Daniel Harris", "Daniel Harris");
          }
          
          if(document.match.player2Team.value == 'DD'){
        	  addOption(document.match.player2,"Virender Sehwag", "Virender Sehwag");
				addOption(document.match.player2,"Aavishkar Salvi", "Aavishkar Salvi");
				addOption(document.match.player2,"Ajit Agarkar", "Ajit Agarkar");
				addOption(document.match.player2,"Irfan Pathan", "Irfan Pathan");
				addOption(document.match.player2,"Kuldeep Rawal", "Kuldeep Rawal");
				addOption(document.match.player2,"Manpreet Juneja", "Manpreet Juneja");
				addOption(document.match.player2,"Naman Ojha", "Naman Ojha");
				addOption(document.match.player2,"Pawan Negi", "Pawan Negi");
				addOption(document.match.player2,"Prashant Naik", "Prashant Naik");
				addOption(document.match.player2,"Puneet Bisht", "Puneet Bisht");
				addOption(document.match.player2,"Robin Bist", "Robin Bist");
				addOption(document.match.player2,"Shahbaz Nadeem", "Shahbaz Nadeem");
				addOption(document.match.player2,"Sunny Gupta", "Sunny Gupta");
				addOption(document.match.player2,"Tejashwi Yadav", "Tejashwi Yadav");
				addOption(document.match.player2,"Umesh Yadav", "Umesh Yadav");
				addOption(document.match.player2,"Unmukt Chand", "Unmukt Chand");
				addOption(document.match.player2,"Varun Aaron", "Varun Aaron");
				addOption(document.match.player2,"Venugopal Rao", "Venugopal Rao");
				addOption(document.match.player2,"Vikas Mishra", "Vikas Mishra");
				addOption(document.match.player2,"Yogesh Nagar", "Yogesh Nagar");
				addOption(document.match.player2,"Zafir Patel", "Zafir Patel");
				addOption(document.match.player2,"Aaron Finch", "Aaron Finch");
				addOption(document.match.player2,"David Warner", "David Warner");
				addOption(document.match.player2,"Doug Bracewell", "Doug Bracewell");
				addOption(document.match.player2,"Kevin Pietersen", "Kevin Pietersen");
				addOption(document.match.player2,"Mahela Jayawardene", "Mahela Jayawardene");
				addOption(document.match.player2,"Morne Morkel", "Morne Morkel");
				addOption(document.match.player2,"Roelof Van Der Merwe", "Roelof Van Der Merwe");
				addOption(document.match.player2,"Ross Taylor", "Ross Taylor");
				addOption(document.match.player2,"Travis Birt", "Travis Birt");
												
          }
          
          if(document.match.player2Team.value == 'KXP'){
        	  addOption(document.match.player2,"Adam Gilchrist", "Adam Gilchrist");
				addOption(document.match.player2,"Abhishek Nayar", "Abhishek Nayar");
				addOption(document.match.player2,"Amit Yadav", "Amit Yadav");
				addOption(document.match.player2,"Bhargav Bhatt", "Bhargav Bhatt");
				addOption(document.match.player2,"Bipul Sharma", "Bipul Sharma");
				addOption(document.match.player2,"Gurkeerat Mann Singh", "Gurkeerat Mann Singh");
				addOption(document.match.player2,"Harmeet Singh Bansal", "Harmeet Singh Bansal");
				addOption(document.match.player2,"Mandeep Singh", "Mandeep Singh");
				addOption(document.match.player2,"Nitin Saini", "Nitin Saini");
				addOption(document.match.player2,"Paras Dogra", "Paras Dogra");
				addOption(document.match.player2,"Parvinder Awana", "Parvinder Awana");
				addOption(document.match.player2,"Paul Valthaty", "Paul Valthaty");
				addOption(document.match.player2,"Piyush Chawla", "Piyush Chawla");
				addOption(document.match.player2,"Praveen Kumar", "Praveen Kumar");
				addOption(document.match.player2,"R Sathish", "R Sathish");
				addOption(document.match.player2,"Shalabh Srivastava", "Shalabh Srivastava");
				addOption(document.match.player2,"Siddharth Chitnis", "Siddharth Chitnis");
				addOption(document.match.player2,"Sunny Singh", "Sunny Singh");
				addOption(document.match.player2,"Vikramjeet Malik", "Vikramjeet Malik");
				addOption(document.match.player2,"Ramesh Powar", "Ramesh Powar");
				addOption(document.match.player2,"David Hussey", "David Hussey");
				addOption(document.match.player2,"David Miller", "David Miller");
				addOption(document.match.player2,"Dimitri Mascarenhas", "Dimitri Mascarenhas");
				addOption(document.match.player2,"Nathan Rimmington", "Nathan Rimmington");
				addOption(document.match.player2,"Ryan Harris", "Ryan Harris");
				addOption(document.match.player2,"Shaun Marsh", "Shaun Marsh");
				addOption(document.match.player2,"Stuart Broad", "Stuart Broad");
				addOption(document.match.player2,"James Faulkner", "James Faulkner");
				addOption(document.match.player2,"Azhar Mahmood", "Azhar Mahmood");
												
          }
          
           if(document.match.player2Team.value == 'KKR'){
        	   addOption(document.match.player2,"Gautam Gambhir", "Gautam Gambhir");
				addOption(document.match.player2,"Chirag Jani", "Chirag Jani");
				addOption(document.match.player2,"Debabrata Das", "Debabrata Das");
				addOption(document.match.player2,"Iqbal Abdulla", "Iqbal Abdulla");
				addOption(document.match.player2,"Iresh Saxena", "Iresh Saxena");
				addOption(document.match.player2,"Jaidev Unadkat", "Jaidev Unadkat");
				addOption(document.match.player2,"L Balaji", "L Balaji");
				addOption(document.match.player2,"Laxmi Shukla", "Laxmi Shukla");
				addOption(document.match.player2,"Manoj Tiwari", "Manoj Tiwari");
				addOption(document.match.player2,"Manvinder Bisla", "Manvinder Bisla");
				addOption(document.match.player2,"Pradeep Sangwan", "Pradeep Sangwan");
				addOption(document.match.player2,"Rajat Bhatia", "Rajat Bhatia");
				addOption(document.match.player2,"Sanju Samson", "Sanju Samson");
				addOption(document.match.player2,"Sarabjit Ladda", "Sarabjit Ladda");
				addOption(document.match.player2,"Shami Ahmed", "Shami Ahmed");
				addOption(document.match.player2,"Yusuf Pathan", "Yusuf Pathan");
				addOption(document.match.player2,"Brad Haddin", "Brad Haddin");
				addOption(document.match.player2,"Brendon McCullum", "Brendon McCullum");
				addOption(document.match.player2,"Brett Lee", "Brett Lee");
				addOption(document.match.player2,"Eoin Morgan", "Eoin Morgan");
				addOption(document.match.player2,"Jacques Kallis", "Jacques Kallis");
				addOption(document.match.player2,"James Pattinson", "James Pattinson");
				addOption(document.match.player2,"Marchant de Lange ", "Marchant de Lange ");
				addOption(document.match.player2,"Ryan ten Doeschate", "Ryan ten Doeschate");
				addOption(document.match.player2,"Shakib Al Hasasn", "Shakib Al Hasasn");
				addOption(document.match.player2,"Sunil Narine", "Sunil Narine");
				
          }
          
          if(document.match.player2Team.value == 'MI'){
        	  addOption(document.match.player2,"Sachin Tendulkar", "Sachin Tendulkar");
				addOption(document.match.player2,"Abu Nechim", "Abu Nechim");
				addOption(document.match.player2,"Aditya Tare", "Aditya Tare");
				addOption(document.match.player2,"Ambati Rayudu", "Ambati Rayudu");
				addOption(document.match.player2,"Amitoze Singh", "Amitoze Singh");
				addOption(document.match.player2,"Apporv Wankhade", "Apporv Wankhade");
				addOption(document.match.player2,"Dhawal Kulkarni", "Dhawal Kulkarni");
				addOption(document.match.player2,"Dinesh Karthik", "Dinesh Karthik");
				addOption(document.match.player2,"Harbhajan Singh", "Harbhajan Singh");
				addOption(document.match.player2,"Jaydev Shah", "Jaydev Shah");
				addOption(document.match.player2,"Kuldeep Yadavl", "Kuldeep Yadav");
				addOption(document.match.player2,"Munaf Patel", "Munaf Patel");
				addOption(document.match.player2,"Pawan Suyal", "Pawan Suyal");
				addOption(document.match.player2,"Pragyan Ojha", "Pragyan Ojha");
				addOption(document.match.player2,"Rahul Shukla", "Rahul Shukla");
				addOption(document.match.player2,"Rohit Sharma", "Rohit Sharma");
				addOption(document.match.player2,"R P Singh", "R P Singh");
				addOption(document.match.player2,"Sujit Nayak", "Sujit Nayak");
				addOption(document.match.player2,"Suryakumar Yadav", "Suryakumar Yadav");
				addOption(document.match.player2,"Sushant Marathe", "Sushant Marathe");
				addOption(document.match.player2,"T Suman", "T Suman");
				addOption(document.match.player2,"Yuzvendra Chahal", "Yuzvendra Chahal");
				addOption(document.match.player2,"Aiden Bllzzard", "Aiden Bllzzard");
				addOption(document.match.player2,"Clint McKay", "Clint McKay");
				addOption(document.match.player2,"David Jacobs", "David Jacobs");
				addOption(document.match.player2,"Herschelle Gibbs", "Herschelle Gibbs ");
				addOption(document.match.player2,"James Franklin", "James Franklin");
				addOption(document.match.player2,"Kieron Pollard", "Kieron Pollard");
				addOption(document.match.player2,"Lasith Malinga", "Lasith Malinga");
				addOption(document.match.player2,"Richard Levi", "Richard Levi");
				addOption(document.match.player2,"Robin John Peterson", "Robin John Peterson");
				addOption(document.match.player2,"Thisara Perera", "Thisara Perera");
          }
          
           if(document.match.player2Team.value == 'RR'){
        	   addOption(document.match.player2,"Rahul Dravid", "Rahul Dravid");
	            addOption(document.match.player2,"Aakash Chopra", "Aakash Chopra");
				addOption(document.match.player2,"Abhishek Raut", "Abhishek Raut");
				addOption(document.match.player2,"Aditya Dole", "Aditya Dole");
				addOption(document.match.player2,"Ajinkya Rahane", "Ajinkya Rahane");
				addOption(document.match.player2,"Ajit Chandila", "Ajit Chandila");
				addOption(document.match.player2,"Amit Paunikar", "Amit Paunikar");
				addOption(document.match.player2,"Amit Singh", "Amit Singh");
				addOption(document.match.player2,"Ankeet Chavan", "Ankeet Chavan");
				addOption(document.match.player2,"Ashok Menaria", "Ashok Menaria");
				addOption(document.match.player2,"Deepak Chahar", "Deepak Chahar");
				addOption(document.match.player2,"Dishant Harendra Yagnik", "Dishant Harendra Yagnik");
				addOption(document.match.player2,"Faiz Fazal", "Faiz Fazal");
				addOption(document.match.player2,"Gajendra Singh", "Gajendra Singh");
				addOption(document.match.player2,"Pankaj Singh", "Pankaj Singh");
				addOption(document.match.player2,"S Sreesanth", "S Sreesanth");
				addOption(document.match.player2,"Samad Fallah", "Samad Fallah");
				addOption(document.match.player2,"Siddharth Trivedi", "Siddharth Trivedi");
				addOption(document.match.player2,"Stuart Binny", "Stuart Binny");
				addOption(document.match.player2,"Sumit Narwal", "Sumit Narwal");
				addOption(document.match.player2,"Shreevats Goswami", "Shreevats Goswami");
				addOption(document.match.player2,"Brad Hogg", "Brad Hogg");
				addOption(document.match.player2,"Bradley Hodge", "Bradley Hodge");
				addOption(document.match.player2,"Dinesh Chandimal", "Dinesh Chandimal");
				addOption(document.match.player2,"Johan Botha", "Johan Botha");
				addOption(document.match.player2,"Kevon Cooper", "Kevon Cooper");
				addOption(document.match.player2,"Paul Collingwood", "Paul Collingwood");
				addOption(document.match.player2,"Shane Watson", "Shane Watson");
				addOption(document.match.player2,"Shaun Tait", "Shaun Tait");
           }
           
           
            if(document.match.player2Team.value == 'PW'){
            	addOption(document.match.player2,"Sourav Ganguly", "Sourav Ganguly");
				addOption(document.match.player2,"Ali Murtaza", "Ali Murtaza");
				addOption(document.match.player2,"Anustup Majumdar", "Anustup Majumdar");
				addOption(document.match.player2,"Ashish Nehra", "Ashish Nehra");
				addOption(document.match.player2,"Ashoke Dinda", "Ashoke Dinda");
				addOption(document.match.player2,"Bhuvneshwar Kumar", "Bhuvneshwar Kumar");
				addOption(document.match.player2,"Dheeraj Jadhav", "Dheeraj Jadhav");
				addOption(document.match.player2,"Eklavya Dwivedi", "Eklavya Dwivedi");
				addOption(document.match.player2,"Harshad Khadiwale", "Harshad Khadiwale");
				addOption(document.match.player2,"Harpreet Singh", "Harpreet Singh");
				addOption(document.match.player2,"Kamran Khan", "Kamran Khan");
				addOption(document.match.player2,"Krishnakant Upadhyay", "Krishnakant Upadhyay");
				addOption(document.match.player2,"Mahesh Rawat", "Mahesh Rawat");
				addOption(document.match.player2,"Manish Pandey", "Manish Pandey");
				addOption(document.match.player2,"Mithun Manhas", "Mithun Manhas");
				addOption(document.match.player2,"Mohnish Mishra", "Mohnish Mishra");
				addOption(document.match.player2,"Murali Karthik", "Murali Karthik");
				addOption(document.match.player2,"Raiphi Gomez", "Raiphi Gomez");
				addOption(document.match.player2,"Rahul Sharma", "Rahul Sharma");
				addOption(document.match.player2,"Robin Uthappa", "Robin Uthappa");
				addOption(document.match.player2,"Sachin Rana", "Sachin Rana");
				addOption(document.match.player2,"Shrikant Wagh", "Shrikant Wagh");
				addOption(document.match.player2,"Alfonson Thomas", "Alfonson Thomas");
			    addOption(document.match.player2,"Agelo Mathews", "Agelo Mathews");
				addOption(document.match.player2,"Callum Ferguson", "Callum Ferguson");
				addOption(document.match.player2,"Graeme Smith", "Graeme Smith");
				addOption(document.match.player2,"James Hopes", "James Hopes");
			    addOption(document.match.player2,"Jesse Ryder", "Jesse Ryder");
				addOption(document.match.player2,"Luke Wright", "Luke Wright");
				addOption(document.match.player2,"Marlon Samuels", "Marlon Samuels");
				addOption(document.match.player2,"Wayne Parnell", "Wayne Parnell");
           }
	}
	
	function removeAllOptions(selectbox)
	{
		var i;
		for(i=selectbox.options.length-1;i>=0;i--)
		{
			selectbox.remove(i);
		}
	}
	
	
	function addOption(selectbox, value, text )
	{
		var optn = document.createElement("option");
		optn.text = text;
		optn.value = value;
		selectbox.options.add(optn);
	}
	
	function validate(){
		if (document.match.winner.value =='--')
		{
			alert("Please select Match-1 Winner");
			return false;
	    }
	    else if (document.match.momTeam.value =='--') 
	    {
	      alert("Please select Team of Man of the Match");
		  return false;
	    }
	    else if (document.match.mom.value =='--') 
	    {
	      alert("Please select Man of the Match");
		  return false;
	    }
	    else if (document.match.userName.value =='') 
	    {
	      alert("Please enter your name");
		  return false;
	    }else if (document.match.sixTeam.value =='--') 
	    {
	      alert("Please select Team for Sixes");
		  return false;
	    }
	    else if (document.match.sixes.value =='') 
	    {
	      alert("Please enter no. of sixes");
		  return false;
	    }else{
	       	return true;
	    }
    }
    
	

</script>
</head>

<%
String userName = (String) session.getAttribute("userName");
String league = (String) session.getAttribute("league");
if(null != userName){
	
	String parameter = request.getParameter("matchId");
	String matchId = parameter.substring(0,parameter.indexOf("*"));
	String cutOff = parameter.substring(parameter.indexOf("*")+1,parameter.length());
	System.out.println("matchId:::"+matchId);
	System.out.println("cutOff:::"+cutOff);
	
	
	DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	dateFormat.setTimeZone(TimeZone.getTimeZone("IST"));
	java.util.Date currentDate = Calendar.getInstance().getTime();
	//java.util.Date today = dateFormat.parse("2011-04-09");
	String now = dateFormat.format(currentDate);
	java.util.Date voteTime = dateFormat.parse(cutOff);
	java.util.Date today = dateFormat.parse(now);
	System.out.println("Now:::"+today.toString());
	if(voteTime.equals(today) || voteTime.after(today)){
		System.out.println("After"+voteTime.toString());
		System.out.println(today.toString());
	

		String teams = null;
		String team1 = null;
		String team2 = null;
		String shortTeam1 = null;
		String shortTeam2 = null;
		
		String sixTeam1 = null;
		String sixTeam2 = null;
		String sixShortTeam1 = null;
		String sixShortTeam2 = null;
		if(matchId!=null){
			session.setAttribute("matchId",null);
			session.setAttribute("matchId",matchId);
			System.out.println("matchId:::"+session.getAttribute("matchId"));
			try{
				if (matchId!=null) {
			      matchId = (String) session.getAttribute("matchId");
			      teams = matchId.substring(matchId.indexOf("@")+1,matchId.length());
			      System.out.println("teams:::"+teams);
			      shortTeam1 = teams.substring(0,teams.lastIndexOf("|"));
			      System.out.println(teams.lastIndexOf("|"));
			      
			      shortTeam2 = teams.substring(teams.lastIndexOf("|")+1,teams.length());
			      System.out.println(shortTeam2);
			      sixShortTeam1 = shortTeam1;
			      sixShortTeam2 = shortTeam2;
			      if(("RCB").equals(shortTeam1)){
			    	  team1 = "Bangalore Royal Challengers";
			    	  sixTeam1 = "Bangalore Royal Challengers";
			      }
			      if(("RCB").equals(shortTeam2)){
			    	  team2 = "Bangalore Royal Challengers";
			    	  sixTeam2 = "Bangalore Royal Challengers";
			      }
			      
			      
			      if(("CSK").equals(shortTeam1)){
			    	  team1 = "Chennai Super Kings";
			    	  sixTeam1 = "Chennai Super Kings";
			      }
			      if(("CSK").equals(shortTeam2)){
			    	  team2 = "Chennai Super Kings";
			    	  sixTeam2 = "Chennai Super Kings";
			      }
			      
			      if(("DC").equals(shortTeam1)){
			    	  team1 = "Deccan Chargers";
			    	  sixTeam1 = "Deccan Chargers";
			      }
			      if(("DC").equals(shortTeam2)){
			    	  team2 = "Deccan Chargers";
			    	  sixTeam2 = "Deccan Chargers";
			      }
			      
			      if(("DD").equals(shortTeam1)){
			    	  team1 = "Delhi DareDevils";
			    	  sixTeam1 = "Delhi DareDevils";
			      }
			      if(("DD").equals(shortTeam2)){
			    	  team2 = "Delhi DareDevils";
			    	  sixTeam2 = "Delhi DareDevils";
			      }
			      
			      if(("KXP").equals(shortTeam1)){
			    	  team1 = "Kings XI Punjab";
			    	  sixTeam1 = "Kings XI Punjab";
			      }
			      if(("KXP").equals(shortTeam2)){
			    	  team2 = "Kings XI Punjab";
			    	  sixTeam2 = "Kings XI Punjab";
			      }
			      
			      if(("KKR").equals(shortTeam1)){
			    	  team1 = "Kolkata Knight Riders";
			    	  sixTeam1 = "Kolkata Knight Riders";
			      }
			      if(("KKR").equals(shortTeam2)){
			    	  team2 = "Kolkata Knight Riders";
			    	  sixTeam2 = "Kolkata Knight Riders";
			      }
			      
			      if(("MI").equals(shortTeam1)){
			    	  team1 = "Mumbai Indians";
			    	  sixTeam1 = "Mumbai Indians";
			      }
			      if(("MI").equals(shortTeam2)){
			    	  team2 = "Mumbai Indians";
			    	  sixTeam2 = "Mumbai Indians";
			      }
			      
			      if(("RR").equals(shortTeam1)){
			    	  team1 = "Rajasthan Royals";
			    	  sixTeam1 = "Rajasthan Royals";
			      }
			      if(("RR").equals(shortTeam2)){
			    	  team2 = "Rajasthan Royals";
			    	  sixTeam2 = "Rajasthan Royals";
			      }
			      
			      if(("KT").equals(shortTeam1)){
			    	  team1 = "Kochi Team";
			    	  sixTeam1 = "Kochi Team";
			      }
			      if(("KT").equals(shortTeam2)){
			    	  team2 = "Kochi Team";
			    	  sixTeam2 = "Kochi Team";
			      }
			      
			      if(("PW").equals(shortTeam1)){
			    	  team1 = "Pune Warriors";
			    	  sixTeam1 = "Pune Warriors";
			      }
			      if(("PW").equals(shortTeam2)){
			    	  team2 = "Pune Warriors";
			    	  sixTeam2 = "Pune Warriors";
			      }
			      
			      
			    }
			}catch(Exception e){
				e.printStackTrace();
			}
		}else{
			//response.sendRedirect("MatchSelect.jsp");
		}
	
	
%>
<body>
<%@ include file="global.jsp" %>
<div id="page">

	<!-- Start of Page Menu -->
	
	<div id="header">
            <h1><a href="#">IPL-5  2012</a></h1>
        </div>
        <%@ include file="links.jsp" %>
        <div>
			<table width="100%">
				<tr>
					<td align="right">
						Logged User: <%=userName%> &nbsp; League: <%=league%> &nbsp; <a href="logout.jsp">logout</a>
					</td>
				</tr>
			</table>
			
		</div>
		
	<!-- End of Page Menu -->


<div id="main">
<div id="content">
<form  action="/IPL5/processQuiz.jsp"  name="match" method = "post">
	
	<center>
		<table>
			<tr>
				<td>
					<h2><%=team1%> Vs <%=team2%></h2>
				</td>
			</tr>
		</table>
	</center>
		 <br/>  
	<table>
		<tr>
			<td width="40%">
				
				<table style="tableClass" border="1" cellspacing="0" cellpadding="0">
					   <tr>
							<td align="right">
								<img src="images\blackCupLogo.png">
							</td>
							<td>
								<center>
								<table>
								<tr>
								<td align="right">Winner:</td>
									<td>
										<select style="background-color:black;color:white" name="winner">
											<option style="background-color:black;color:#33FFFF" value="--">--Select Winner Team--</option>
											<option style="background-color:black;color:#33FFFF" value="<%=shortTeam1%>"><%=team1%></option>
											<option style="background-color:black;color:#33FFFF" value="<%=shortTeam2%>"><%=team2%></option>
									  	</select>
								  	</td>
							  	</tr>
							  	</table>
							</td>
						</tr>
						<tr>
							<td align="right">
								<img width="100%" src="images\batsmenLogo.jpg">
							</td>
							<td>
								<center>
								<table>
								<tr>
									<td align="right">MOM's Team:</td>
									<td>
										<select style="background-color:black;color:white" name="momTeam" onChange="return getMoms();" >
											<option style="background-color:black;color:#33FFFF" value="--">--Select MOM Team--</option>
											<option style="background-color:black;color:#33FFFF" value="<%=shortTeam1%>"><%=team1%></option>
											<option style="background-color:black;color:#33FFFF" value="<%=shortTeam2%>"><%=team2%></option>
									  	</select>
									</td>
								</tr>
								<tr>
									<td align="right">MOM:</td>
									<td>
										<select style="background-color:black;color:white" name="mom">
											<option style="background-color:black;color:#33FFFF" value="--">--Select Team--</option>
									  	</select>
									</td>
								</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="right">
								<img width="100%" src="images\sixer.jpg">
							</td>
							<td>
								<center>
								<table>
								<tr>
									<td align="right">Sixers Team:</td>
									<td>
										<select style="background-color:black;color:white" name="sixTeam">
											<option style="background-color:black;color:#33FFFF" value="--">--Select Sixers Team--</option>
											<option style="background-color:black;color:#33FFFF" value="<%=sixShortTeam1%>"><%=sixTeam1%></option>
											<option style="background-color:black;color:#33FFFF" value="<%=sixShortTeam2%>"><%=sixTeam2%></option>
									  	</select>
									</td>
								</tr>
								<tr>
									<td align="right">Sixes Count:</td>
									<td>
										<select style="background-color:black;color:white" name="sixes">
											<option style="background-color:black;color:#33FFFF" value="-1">--No.of Sixes--</option>
											<option style="background-color:black;color:#33FFFF" value="0-2">-- 0 to 2 --</option>
											<option style="background-color:black;color:#33FFFF" value="3-6">-- 3 to 6 --</option>
											<option style="background-color:black;color:#33FFFF" value="7-9">-- 7 to 9 --</option>
											<option style="background-color:black;color:#33FFFF" value="10-12">-- 10 to 12 --</option>
											<option style="background-color:black;color:#33FFFF" value="13-15">-- 13 to 15 --</option>
											<option style="background-color:black;color:#33FFFF" value="16+">-- 16 & above --</option>
									  	</select>
									</td>
								</tr>
								
								</table>
								
							</td>
						</tr>
						<tr>
							<td align="right">
								<img width="100%" src="images\mic.jpg">
							</td>
							<td>
								<center>
								<table>
									 <tr>
										<td style="nowrap:nowrap;">
											<FONT><blink>Punch Line:</blink></FONT>
										</td>
										<td>
											<textarea rows="3" cols="15" name="punch">
											</textarea>
											
										</td>
									</tr>
									<tr>
										<td align="right">User Name:</td>
										<td>
											<input disabled="true" type="text" name="userName" value="<%=userName%>"/>
										</td>
									 </tr>
							     </table>
							     </center>
							</td>
						</tr>
				</table>
				
				
				
			</td>
			<td valign="top" width="60%">
				
				
				<table border="1" cellpadding="0" cellspacing="0" width="100%" height="100%">
				<caption style="color:#009900;"><h3>SAB KA JAWAB</h3></caption>
				<tr>
					<th>S.No</th>
					<th>UserName</th>
					<th>Winner</th>
					<th>MOM</th>
					<th>Sixes</th>
					<th>Punch</th>
					<th>Time</th>
				</tr>

				<%
					System.out.println(matchId);
					Connection conn = null;
					Statement stmt = null;
					ResultSet rset = null;
					try{
						Class.forName(db_driver);
						conn = DriverManager.getConnection(db_url, db_user, db_password);
						stmt = conn.createStatement();
						System.out.println("SELECT userName, Winner, MOM, sixeswinner, sixes, Punch, time from answers  where matchid='"+matchId+"' and league='"+league+"'");
						rset = stmt.executeQuery("SELECT userName, Winner, MOM, sixeswinner, sixes, Punch, time from answers  where matchid='"+matchId+"'  and league='"+league+"'");
						
						//rset = stmt.executeQuery("SELECT userName, Winner, MOM, sixeswinner, sixes, Punch, time from answers  where matchid='"+matchId+"'");
						int i=0;
						while (rset.next()){
							i++;	
							String name = rset.getString(1);
							//name=name.substring(0, name.length()-2);
							%>
							<tr>
							<td align="center"><%= i%></td>
							<td align="center"><%= name.toUpperCase()%></td>
							<td align="center"><%= rset.getString(2)%></td>
							<td align="center"><%= rset.getString(3)%></td>
							<td align="center"><%= rset.getString(5)%> by <%= rset.getString(4)%></td>
							<td align="center"><FONT COLOR="#CC0000"><%= rset.getString(6)%></FONT></td>
							<td align="center"><%= rset.getString(7)%></td>
							</tr>
							<%
						}
					}
						catch ( Exception e1){
						e1.printStackTrace();
					} 
					finally{
						conn.close();
						stmt.close();
						rset.close();
					}
					%>
				</table>
									
									
		</td>
	   </tr>
			<tr>
				<td align="center">
						<input type="submit"  value="Submit" size="7" onClick="javascript:validate();"/>
					
						<input type="reset"  value="Reset" size="7"/>
					</td>
				</tr>
			</table>
		</form>
		</div>

		<%
		if ( session.getAttribute("resposeText") != null && !("").equals(session.getAttribute("resposeText")))
		{ 
				session.setAttribute("resposeText", null);
		}
	}
	else{
		   if(voteTime.before(today)){
				System.out.println("B4"+voteTime.toString());
				System.out.println(today.toString());
			%>
	 <div id="page">
		<div id="header">
            <h1><a href="#">IPL-5  2012</a></h1>
        </div>
        <%@ include file="links.jsp" %>
        <%@ include file="global.jsp" %>
        <div>
			<table width="100%">
				<tr>
					<td align="right">
						Logged User: <%=userName%> &nbsp; League: <%=league%> &nbsp; <a href="logout.jsp">logout</a>
					</td>
				</tr>
			</table>
			
		</div>
        <div id="main">		              
            <div id="content">            
            	<center>
				   <br>
					<table align="center">
						<tr>
							<td>
								<h1><font color="red">!!! Time Up Buddy !!!</font></h1>
							</td>
						</tr>
					</table>
					<br><br>
					<table align="center">
						<tr>
							<td>
								<h2>!!! VOTE ON TIME ELSE YOU LOOSE POINTS !!!</h2>
							</td>
						</tr>
						<tr>
							<td align="center"><img  height="100" width="100" src="images\sad_smiley.gif"></td> 
						</tr>
						
					</table>
					<br/>
					
				
				
				<table border="1" cellpadding="0" cellspacing="0" width="100%" height="100%">
						<caption style="color:#009900;"><h3>SAB KA JAWAB</h3></caption>
						<tr>
							<th>S.No</th>
							<th>UserName</th>
							<th>Winner</th>
							<th>MOM</th>
							<th>Sixes</th>
							<th>Punch</th>
							<th>Time</th>
						</tr>
		
						<%
							System.out.println(matchId);
							Connection conn = null;
							Statement stmt = null;
							ResultSet rset = null;
							try{
								Class.forName(db_driver);
								conn = DriverManager.getConnection(db_url, db_user, db_password);
								stmt = conn.createStatement();
								rset = stmt.executeQuery("SELECT userName, Winner, MOM, sixeswinner, sixes, Punch, time from answers  where matchid='"+matchId+"' and league='"+league+"'");
								int i=0;
								while (rset.next()){
									i++;	
									String name = rset.getString(1);
									//name=name.substring(0, name.length()-2);
									%>
									<tr>
									<td align="center"><%= i%></td>
									<td align="center"><%= name.toUpperCase()%></td>
									<td align="center"><%= rset.getString(2)%></td>
									<td align="center"><%= rset.getString(3)%></td>
									<td align="center"><%= rset.getString(5)%> by <%= rset.getString(4)%></td>
									<td align="center"><FONT COLOR="#CC0000"><%= rset.getString(6)%></FONT></td>
									<td align="center"><%= rset.getString(7)%></td>
									</tr>
									<%
								}
							}
								catch ( Exception e1){
								e1.printStackTrace();
							} 
							finally{
								conn.close();
								stmt.close();
								rset.close();
							}
							%>
						</table>
				</center>
            </div>
        </div>
		<%
	}
}
}else {
	%>
		<jsp:forward   page="login.jsp"/>
	<%
}

%>
</body>
</html>